﻿#region ... Copyright Notice ...
/*
   Copyright 2008 Tyler Jensen

	Author: Tyler Jensen    http://www.tsjensen.com/blog

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
 */
#endregion

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Atrax.Contracts;
using Atrax.Library;

namespace Atrax.Consumers
{
	[System.Diagnostics.DebuggerStepThroughAttribute()]
	[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
	public class MasterClient : System.ServiceModel.ClientBase<Atrax.Contracts.IMasterService>, Atrax.Contracts.IMasterService
	{
		public MasterClient()
		{
		}

		public MasterClient(string endpointConfigurationName) :
			base(endpointConfigurationName)
		{
		}

		public MasterClient(string endpointConfigurationName, string remoteAddress) :
			base(endpointConfigurationName, remoteAddress)
		{
		}

		public MasterClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) :
			base(endpointConfigurationName, remoteAddress)
		{
		}

		public MasterClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
			base(binding, remoteAddress)
		{
		}

		public QueryResponse Execute(Query query)
		{
			return base.Channel.Execute(query);
		}

		public void ReportResult(SpiderResult result)
		{
			base.Channel.ReportResult(result);
		}

		public MasterStatus GetStatus(string authenticationToken)
		{
			return base.Channel.GetStatus(authenticationToken);
		}

		public void KillQuery(string queryId, string authenticationToken)
		{
			base.Channel.KillQuery(queryId, authenticationToken);
		}

		public string GetSampleRequest(Query query)
		{
			return base.Channel.GetSampleRequest(query);
		}
	}



}
